# coding=utf-8

import hashlib, time, random
from application import app

class OrderLibs():
    @staticmethod
    def gene_order_sn():
        m = hashlib.md5()
        sn = None
        str = "%s-%s" % (int(round(time.time() * 1000)), random.randint(0, 9999999))
        m.update(str.encode("utf-8"))
        sn = m.hexdigest()
        return sn

